import request from "@/utils/request";
const baseUrl = "http://106.12.170.98:48080";
//获取瓦斯监控数据
export function getGasMonitor(data) {
  return request({
    url: `${baseUrl}/app-api/twin/gas-monitor`,
    method: "get",
  });
}
//获取指定日期的浮沉试验记录
export function getDailyRecords(data) {
  return request({
    url: `${baseUrl}/app-api/twin/float-sink-test/get-daily-records`,
    method: "get",
  });
}

//获取指定日期的灰分试验记录
export function getChemicalDailyRecords(params) {
  return request({
    url: `${baseUrl}/app-api/twin/chemical-test/get-daily-records`,
    method: "get",
    params,
  });
}
//获取带设备名称的仓存统计数据
export function getStorageStatisticsWithNames(params) {
  return request({
    url: `${baseUrl}/app-api/twin/storage-statistics/with-names`,
    method: "get",
    params,
  });
}
//echarts数据-----
//获取班次水耗
export function getShiftWaterConsumption(params) {
  return request({
    url: `${baseUrl}/app-api/twin/shift-water-consumption`,
    method: "get",
    params,
  });
}
//获取班次药剂消耗
export function getShiftReagentConsumption(params) {
  return request({
    url: `${baseUrl}/app-api/twin/shift-reagent-consumption`,
    method: "get",
    params,
  });
}

//获取班次介质消耗
export function getShiftMediumConsumption(params) {
  return request({
    url: `${baseUrl}/app-api/twin/shift-medium-consumption`,
    method: "get",
    params,
  });
}
//获取班次电耗
export function getShiftElectricConsumption(params) {
  return request({
    url: `${baseUrl}/app-api/twin/shift-electric-consumption`,
    method: "get",
    params,
  });
}

// 年统计每个指标的月平均数
export function getAirHistoryByMonth(params) {
  return request({
    url: "api/parks/AirDetection/historyByMonth",
    method: "get",
    params,
  });
}
// 月统计每个指标的日平均数
export function getAirHistoryByDay(params) {
  return request({
    url: "api/parks/AirDetection/historyByDay",
    method: "get",
    params,
  });
}

// 卡口违章排名
export function getHKKaKou(data) {
  return request({
    url: "api/parks/HaiKang/illegalRanking",
    method: "post",
    data,
  });
}
// 安全应急
export function getHKEventsSearch(data) {
  return request({
    url: "api/parks/HaiKang/eventsSearch",
    method: "post",
    data,
  });
}
// 综合服务
export function getZHFWdata(params) {
  return request({
    url: "api/park/partyLargeScreen",
    method: "get",
    params,
  });
}
// 环境监测
export function getHJJCRightData(params) {
  return request({
    url: "api/parks/AirDetection/WeatherMonitoringSearch",
    method: "get",
    params,
  });
}
//经济运行
// 园区规上企业经营数据 -- 大屏
export function getJJYXselectBusinessOperations(params) {
  return request({
    url: "api/parks/ManualData/selectBusinessOperations",
    method: "get",
    params,
  });
}
// 行业年度产值增长趋势对比 -- 大屏
export function getJJYXselectIndustryTrends(params) {
  return request({
    url: "api/parks/ManualData/selectIndustryTrends",
    method: "get",
    params,
  });
}
//产业产值比重分析 -- 大屏
export function getJJYXightData(data) {
  return request({
    url: "api/parks/ManualData/selectProportion",
    method: "post",
    data,
  });
}
//企业本年度工业产值 -- 大屏
export function getJJYXselectOutPut(data) {
  return request({
    url: "api/parks/ManualData/selectOutPut",
    method: "post",
    data,
  });
}

//交通物流
export function getJTWL(data) {
  return request({
    url: "api/parks/HaiKang/regionList",
    method: "post",
    data,
  });
}
//摄像头搜索
export function searchVideos(data) {
  return request({
    url: "api/parks/HaiKang/cameraList",
    method: "post",
    data,
  });
}

// 综合服务 -- 党建人员发展趋势
export function getSelectBranchGrowth(params) {
  return request({
    url: "api/parks/ManualData/selectBranchGrowth",
    method: "get",
    params,
  });
}
// 综合服务 -- 党员风采
export function getSelectBranchMien(params) {
  return request({
    url: "api/parks/ManualData/selectBranchMien",
    method: "get",
    params,
  });
}
// 综合服务 -- 党员学历排行
export function getSelectBranchDegree(params) {
  return request({
    url: "api/parks/ManualData/selectBranchDegree",
    method: "get",
    params,
  });
}
// 综合服务 -- 党员年龄分布
export function getSelectBranchAge(params) {
  return request({
    url: "api/parks/ManualData/selectBranchAge",
    method: "get",
    params,
  });
}
//综合服务 -- 党支部人数
export function getSelectBranchToll(params) {
  return request({
    url: "api/parks/ManualData/selectBranchToll",
    method: "get",
    params,
  });
}
//综合服务 -- 党支部活动参与
export function getSelectBranchInfo(params) {
  return request({
    url: "api/parks/ManualData/selectBranchInfo",
    method: "get",
    params,
  });
}
//综合服务 -- 党建数据可视化
export function getSelectBranchConstruction(params) {
  return request({
    url: "api/parks/ManualData/selectBranchConstruction",
    method: "get",
    params,
  });
}
